<head th:fragment="headerCss">
    <meta charset="utf-8">
    <title>湖南省育婴师协会</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <meta name="keywords" content="金职伟业"/>
    <meta name="description"
          content="湖南金职伟业母婴护理有限公司"/>
    <meta name="renderer" content="webkit">
    <link rel="stylesheet" href="/js/layui/css/layui.css">
    <!--<script src="/js/plugins/layer/theme/default/layer.css"></script>-->
    <!-- Bootstrap CSS File -->
    <link href="/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,700,700i|Raleway:300,400,500,700,800|Montserrat:300,400,700"
          rel="stylesheet">
    <!-- Libraries CSS Files -->
    <link href="/lib/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="/lib/ionicons/css/ionicons.min.css" rel="stylesheet">
    <link href="/lib/magnific-popup/magnific-popup.css" rel="stylesheet">
    <!-- Main Stylesheet File -->
    <link href="/css/certificateWeb/style.css" rel="stylesheet">
    <link rel="stylesheet" href="/css/selectpage.css" type="text/css">
    <link rel="shortcut icon" href="favicon.ico">
    <script>/*@cc_on document.write('\x3Cscript id="_iealwn_js" src="https://support.dmeng.net/ie-alert-warning/latest.js">\x3C/script>'); @*/</script>
    <style>
        #btnUpload {
            margin-top: 10px;
        }

        .layui-upload-file {
            display: none !important;
            opacity: .01;
            filter: Alpha(opacity=1);
        }

        .bubble {
            position: absolute;
            width: 16px;
            height: 16px;
            text-align: center;
            background-color: #ff5027;
            line-height: 16px;
            color: #ffffff;
            font-size: 12px;
            top: -4px;
            left: 8px;
            margin: 0;
            border-radius: 16px;
            cursor: pointer;
        }
    </style>
</head>
<div th:fragment="header">
    <div class="header" id="header">
        <div class="header-block flex-row">
            <a href="/certificate/homepage" class="img-block logo"><img src="/img/yyslogo.png" alt="logo"
                                                                        style="float:left;width:217px;height:49px;margin-top: 6px"></a>
            <div class="header-r flex-row" style="float:right;">
                <div class="logReg">
                    <div class="item no" style="display: inline;font-size: 14px">
                        <a href="/certificate/loginWeb" class="item-a">登录</a> |
                    </div>
                    <div class="item no" style="display: inline;font-size: 14px">
                        <a href="/certificate/registerWeb" class="item-a">注册</a>
                    </div>
                    <div class="item yes" style="display: none;font-size: 14px">
                        <a href="/certificate/my" id="my" class="item-a" style="padding: 2px 4px;">
                            [&nbsp;<span id="user" style="color:#ff751a;font-weight:bold" th:text="${uName}"></span>&nbsp;]&nbsp;个人中心</a>、
                        <i class="fa fa-bell-o" aria-hidden="true" id="msgSize"
                           style="position: relative;font-size: 16px;cursor: pointer">
                            <span class="bubble" style="display: none"></span>
                        </i>
                    </div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <div class="yes" style="display: none;font-size: 14px">
                        <a href="#" id="loginOut" style="width: 100px">安全退出</a>
                    </div>
                </div>
                <div class="main-nav flex-row">
                    <div class="item"><a href="/certificate/homepage" class="item-a">首页</a></div>
                    <div class="item"><a href="/certificate/standardInfo" class="item-a">职业技能证书</a></div>
                    <div class="item"><a href="/certificate/policyInfo" class="item-a">信息资讯</a></div>
                    <!--<div class="item"> <a href="/certificate/testingCentreQuery" class="item-a" target="_blank">信息查询</a> </div>-->
                    <div class="item" id="apply"><a href="/certificate/testingCentreApplyFor?type=5" class="item-a">站点申请</a>
                    </div>
                    <div class="item" id="apply1"><a href="/certificate/evaluationStationApplyFor?type=4" class="item-a">专家申请</a></div>
                    <div class="item"><a href="/certificate/dataDownload" class="item-a">资料下载</a></div>
                    <div class="item"><a href=/certificate/certificateWeb" class="item-a">关于我们</a></div>
                    <!--<div class="item"> <a href="#" class="item-a">综合管理平台</a> </div>-->
                </div>
            </div>
            <div style="clear: both"></div>
        </div>
    </div>
    <div style="height:69px"></div>
</div>
<div th:fragment="footer">
    <footer id="footer" style="max-width:1920px">
        <div class="container" style="width: 1200px;margin: auto">
            <div class="copyright">
                <div>公司地址：湖南省长沙市雨花区香樟路255号云集大厦四楼</div>
                <div>联系电话：0731-89799889&nbsp;/&nbsp;17773174867</div>
                <a target="_blank" href="https://www.hnsyys.cn/">版权所有：湖南省育婴师协会</a><br>
                <a target="_blank" href="">技术支持：长沙民振教育科技有限公司</a><br>
                <a href="http://beian.miit.gov.cn" target="_blank">备案号：湘ICP备20003916号</a>
            </div>
            <div class="credits">
            </div>
        </div>
    </footer><!-- #footer -->

    <script src="/lib/jquery/jquery.min.js"></script>

    <script src="/lib/jquery/jquery-migrate.min.js"></script>
    <script src="/js/layui/layui.js"></script>
    <script src="/js/plugins/layer/layer.min.js"></script>
    <script src="/js/plugins/validate/jquery.validate.min.js"></script>

    <script src="/js/plugins/validate/messages_zh.min.js"></script>

    <script src="/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
    <!--多级导航栏插件-->
    <script src="/lib/superfish/hoverIntent.js"></script>
    <script src="/lib/superfish/superfish.min.js"></script>
    <!--响应式弹出层和对话框插插件-->
    <script src="/lib/magnific-popup/magnific-popup.min.js"></script>
    <script src="/js/certificateWeb/main.js"></script>

    <!--分页下拉框-->
    <script type="text/javascript" src="/js/selectpage.js"></script>
    <script>
        window.onscroll = function () {
            if (document.documentElement.scrollLeft != 0) {
                var sl = -Math.max(document.body.scrollLeft + 100, document.documentElement.scrollLeft + 100);
                document.getElementById('header').style.left = sl + 'px';
            } else {
                document.getElementById('header').style.left = '0px';
            }
        };
        $(function () {
            var userName = window.localStorage.getItem("userName");
            var unreadNum = window.localStorage.getItem("unreadNum0");
            if (userName != "" && userName != null) {
                $("#user").text(userName);
                $('.yes').css("display", "inline");
                $('.no').css("display", "none");
                if (unreadNum != 0 && unreadNum != null && unreadNum != '') {
                    $(".bubble").css("display", "inline");
                    $(".bubble").html(unreadNum)
                }
            } else {
                $(".yes").css("display", "none");
                $(".no").css("display", "inline")
            }
            $("#loginOut").click(function () {
                localStorage.clear();
                location.href = '/certificate/homepage';
            })
        });
        //公用导航栏的根据url控制选中导航
        $(function () {
            var links = $(".item").find("a");
            index = 0,//默认第一个菜单项
                url = location.href.split('?')[0].split('/').pop();//取当前URL最后一个 / 后面的文件名，pop方法是删除最后一个元素并返回最后一个元素
            // console.log("url",url)
            if (url) {//如果有取到, 则进行匹配, 否则默认为首页(即index的值所指向的那个)
                for (var i = 0; i < links.length; i++) {//遍历 menu 的中连接地址
                    if(url=='skillLeve'||url=='teaching'||url=='scoreCriteria'||url=='evaluationCriteria'||url=='courseCriteria'||url=='operationManual'||url=='otherData'){
                	    url='skillLeve';
                    }
                    if (links[i].href.indexOf(url) !== -1) {  //有
                        index = i;
                        break;
                    }
                }
            }
            if (url == 'homepage' || url == 'standardInfo' || url == 'policyInfo' || url == 'skillLeve' ||
                url == 'certificateWeb' ||url == 'dataDownload'||url == 'testingCentreApplyFor' || url == 'evaluationStationApplyFor' || url == 'my') {
                links[index].className += ' cur';
            }
            $("#msgSize").click(function () {
                location.href = '/certificate/message';
            })
        });
    </script>
</div>